package org.summer.lawyer.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 用户钱包对象 user_wallet
 *
 * @author summer
 * @date 2024-06-27
 */
@Data
@TableName("user_wallet")
public class UserWallet  {


    /**
     * 用户钱包ID
     */
    @TableId(value = "wallet_id", type = IdType.ASSIGN_ID)
    private Long walletId;



    /**
     * 用户ID
     */
    @TableField(value = "wx_user_id")
    private Long wxUserId;



    /**
     * 钱包总收入（单位分）
     */
    @TableField(value = "wallet_income")
    private Long walletIncome;



    /**
     * 钱包总支出（单位分）
     */
    @TableField(value = "wallet_expense")
    private Long walletExpense;



    /**
     * 钱包可用余额（单位分）
     */
    @TableField(value = "balance_fee")
    private Long balanceFee;



    /**
     * 钱包冻结金额
     */
    @TableField(value = "frozen_amount")
    private Long frozenAmount;



    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;



    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;



}
